<#assign contextPath=springMacroRequestContext.getContextPath() />
<#import "/public/frame/main.html" as frame />
<@frame.head "南航明珠商城-商品列表">
</@frame.head>
<link rel="stylesheet" type="text/css" href="${contextPath}/resources/css/search_table.css" />
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 后台管理中心 <span class="c-gray en">&gt;</span>日志管理 <span class="c-gray en">&gt;</span> 机票优惠券日志  <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
<form method="post" name="query_order_form"  id="query_order" action="${contextPath}/air_ticket/query_air_ticket_log" >    
   <input type="hidden" name="page" value="${pagination.pageNo}"  id="page" />                       
    <div class="text-c">
         <table class="table search_table">
                <tr>
                    <td>会员卡号：</td>
                    <td>
                        <input id="memberNo" value="${airTicketLogQo.memberNo}" class="input-text radius" name="memberNo" type="text"/>
                    </td>
	            	<td>手机号：</td>
                   <td>
                        <input id="mobile" value="${airTicketLogQo.mobile}" class="input-text radius" name="mobile" type="text"/>
                    </td>
                    <td>活动号：</td>
                    <td>
                     <input id="activityId" value="${airTicketLogQo.activityId}" class="input-text radius" name="activityId" type="text"/>
                    </td>
                </tr>
                 <tr>
                    <td> 常客订单号 ：</td>
                    <td>
                     <input id="skbOrderNo" value="${airTicketLogQo.skbOrderNo}" class="input-text radius" name="skbOrderNo" type="text"/>
                    </td>
                 	<td>操作分类：</td>
                   <td>
                   <span class="select-box radius" >            
          	   			<select class="select"  name="interfaceNameType" id="interfaceNameType">
						    <option value="">查询所有</option>
						    <option <#if airTicketLogQo.interfaceNameType ==1 > selected="selected" </#if>  value="1">获取机票优惠券</option>
						    <option <#if airTicketLogQo.interfaceNameType ==2 > selected="selected" </#if>  value="2">派券申请</option>
						    <option <#if airTicketLogQo.interfaceNameType ==3 > selected="selected" </#if>  value="3">派券结果查询</option>
						</select>
					</span>
                    </td>
                    <td></td>
           			<td style="text-align: left;">
           				<button type="button" class="btn btn-success radius" onclick="search()" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 查询</button>
           			 <button type="button" class="btn btn-success radius" id="toIsEmpty" onclick="toEmpty();" name="toIsEmpty"><i class="Hui-iconfont">&#xe665;</i> 重置</button>
					</td>
              	</tr>
            </table>
           
    </div>
</form>

    <div class="cl pd-5 bg-1 bk-gray mt-20"> 
  
    
    <span class="r">共有数据：<strong> ${pagination.totalCount} </strong> 条</span> </div>
    <table class="table table-border table-bordered table-bg" style="margin-top: -1px;">
        <thead>
        <tr   class="text-c">
            <!-- <th width="45px">
            <input  type="checkbox" id="selectAll" disabled="disabled" onclick="checkAll()"/>
            </th> -->
            <th >会员卡号</th>
            <th >常客支付订单号</th>
            <th >活动号</th>
            <th >手机号</th>
   <!--          <th >发送内容</th>  
            <th style="width: 40%">返回内容</th> -->
            <th >  发送时间</th>
             <th >返回时间</th>
             <th >操作</th>  
        </tr>
        </thead>
        <tbody>
       <#if pagination.list?? && (pagination.list?size &gt; 0) >
        <#list pagination.list as aittickcets> 
        	 <tr class="text-c">
        	    <td  >${aittickcets.memberNo}  </td>
        	   	<td  >${aittickcets.skbOrderNo} </td>
        	   	<td  >${aittickcets.activityId } </td>
        	    <td  >${aittickcets.mobile} </td> 
        <!-- 	<td  >  </td>
        	    <td  >  </td>  --> 
        	     <td  ><#if aittickcets.sendDate??> ${aittickcets.sendDate?datetime}</#if> </td>
        	    <td  ><#if aittickcets.returnDate??> ${aittickcets.returnDate?datetime}</#if> </td> 
        	    <td  >
				
					 <input type="hidden" value='${aittickcets.sendParam}' id="sendParamJson${aittickcets_index}"  >
                	<input type="hidden" value='${aittickcets.returnParam}' id="returnParamJson${aittickcets_index}"  >
                   <a title="详情" href="javascript:;"    onclick="dio_result(${aittickcets_index})" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe665;</i></a>
              
				</td> 
        	 </tr>
      </#list></#if>
     </tbody>
    </table>
    <div id="biuuu_city" style="padding-top: 10px;float: right"></div>
</div>
<@frame.end "default">
</@frame.end>

<script type="text/javascript" src="${contextPath}/resources/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="${contextPath}/resources/js/laypage/laypage.js"></script>
<script type="text/javascript" src="${contextPath}/resources/js/log/air_ticket_log.js"></script>
<script type="text/javascript">
var path="${contextPath}";

laypage({
    cont: 'biuuu_city',//容器。值支持id名、原生dom对象，jquery对象。
    pages: ${pagination.totalPage},//通过后台拿到的总页数
    curr:  ${pagination.pageNo} || 1, //当前页
    skip: true, //是否开启跳页
	first: 1, //将首页显示为数字1,。若不显示，设置false即可
	last: ${pagination.totalPage}, //将尾页显示为总页数。若不显示，设置false即可
    jump: function(obj , first){//触发分页后的回调
        if(!first){ //点击跳页触发函数;当前页为obj.curr
          $(page).val(obj.curr);//获取点击的页码
          $(query_order_form).submit();
        }
    }
})  

 function dio_result(id){
	var jsonsendMsg= $("#sendParamJson"+id).val();
	var jsonreturnMsg= $("#returnParamJson"+id).val();
		layer.open({
  		  title: '信息',
  		  maxWidth:600,
  		  maxHeight:400,
  		  content: '<div> <b>发送信息:</b>'+jsonsendMsg+' <br /><br /> <b>返回信息:</b>'  +jsonreturnMsg +  '</div>'
  		});    
 }    
</script>
</body>

</html>
 
